package com.ky.gp.app.service;

import com.ky.common.vo.R;
import com.ky.gp.app.config.OpenFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "gp-home-server",configuration = OpenFeignConfig.class)
public interface WordsFeign {

    @RequestMapping("/home/words/getRandomWord")
    R getRandomWord();
    @RequestMapping("/home/words/getTodayWordNum")
    R getTodayWordNum();

    @RequestMapping("/home/words/recitation")
    R recitation();

    @RequestMapping("/home/words/recitationWordNum")
    R recitationWordNum();
    @RequestMapping("/home/wrong-questions/collectionWord/{id}")
    R collectionWord(@PathVariable("id") int id);

    @RequestMapping("/home/wrong-questions/collectionWordList")
    R collectionWordList();
}
